import axios from '../axios'

/* 
 * 文档管理模块
 */

// 保存
export const add = (data) => {
    return axios({
        url: '/document/add',
        method: 'post',
        data
    })
}
// 修改
export const edit = (data) => {
  return axios({
    url: '/document/edit',
    method: 'post',
    data
  })
}
// 删除
export const batchDelete = (data) => {
    return axios({
        url: '/document/delete',
        method: 'post',
        data
    })
}
// 分页查询
export const findPage = () => {
    return axios({
        url: '/document/findPage',
        method: 'post'
    })
}


